//
//  RootViewController.m
//  DriverFramework
//
//  Created by Qianxia on 2017/1/3.
//  Copyright © 2017年 黄旺鑫. All rights reserved.
//

#import "RootViewController.h"
#import "BaseViewController.h"
#import "ListenToSingleModeViewController.h"
@import QXUtils;

@interface RootViewController ()

@end

@implementation RootViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    
    // 添加父首页
    UINavigationController *baseNavigationController = [BaseViewController baseNavigationController];
//    [baseNavigationController addToParentViewController:self];
    [self addChildViewController:baseNavigationController];
    [self.view addSubview:baseNavigationController.view];
    
    ListenToSingleModeViewController *listenToSingleModeViewController = [ListenToSingleModeViewController shareSelf];
    [listenToSingleModeViewController clearCache];
    [self addChildViewController:listenToSingleModeViewController];
    [self.view addSubview:listenToSingleModeViewController.view];
    
}
- (void)viewWillAppear:(BOOL)animated {
    [super viewWillAppear:animated];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
